<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
         language="java" %>
<%@ include file="/jsp/platform/include/include.jsp" %>
<html>
<head>
    <TITLE><c:out value="${_LOGONUSER_.MANAGETITILE}"/></TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <%@ include file="/jsp/platform/include/header.jsp" %>

    <script type="text/javascript">
        function deleteData(menuId) {
            $.messager.confirm("操作提示", "您确定要执行此操作吗！", function (data) {
                if (data) {
                    var url = '<%=request.getContextPath()%>/manage/menus/delete';
                    $.post(
                            url,
                            {
                                'menuId' : menuId
                            },
                            function(data) {
                                if (data.success) {
                                    $.messager.alert("提示信息", data.msg, "info", function() {
                                        window.location.href = window.location.href;
                                    });
                                } else {
                                    $.messager.alert("提示信息", data.msg);
                                }
                            });
                }
            });
        }
    </script>
</HEAD>
<BODY>
<DIV class="all">
    <%@ include file="/jsp/platform/include/head.jsp" %>
    <%@ include file="/jsp/platform/include/menu.jsp" %>
    <DIV class="mains">
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
            <TBODY>
            <TR valign="top">
                <%@ include file="/jsp/platform/include/mainLeft.jsp" %>
                <TD>
                    <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
                        <TBODY>
                        <TR>
                            <TD>
                                <TABLE width="180" border="0" cellspacing="0" cellpadding="0">
                                    <TBODY>
                                    <TR>
                                        <TD width="7"><IMG width="7" height="36" alt=""
                                                           src="<%=request.getContextPath()%>/images/pages_l.jpg">
                                        </TD>
                                        <TD align="center"
                                            background="<%=request.getContextPath()%>/images/pages_bg.jpg">
                                            <SPAN class="f_tit1">历史对账查询</SPAN></TD>
                                        <TD width="7"><IMG width="7" height="36" alt=""
                                                           src="<%=request.getContextPath()%>/images/pages_r.jpg">
                                        </TD>
                                    </TR>
                                    </TBODY>
                                </TABLE>
                            </TD>
                        </TR>
                        </TBODY>
                        <TR>
                            <TD>
                                <div class="pages_con">
                                    <FORM name="queryForm" id="queryForm"
                                          action="<%=request.getContextPath()%>/manage/billCheckLog/list"
                                          method="post">
                                        <div class="pages_con_20">

                                            <div class="transaction_external">
                                                <DIV class="clearfix">
															<SPAN class="label dl_w"
                                                                  style="padding-left:20px;text-align:right;">起止日期：</SPAN>

                                                    <DIV class="select2 date">
                                                        <INPUT name="begindate" class="easyui-datebox"
                                                               id="begindate" style="border:none" type="text"
                                                               data-options="formatter:myformatter,parser:myparser"
                                                               value="<fmt:formatDate value='${model.begindate}' type='date'/>">
                                                    </DIV>
                                                    <SPAN class="label margin_l_5">-</SPAN>

                                                    <DIV class="select2 date">
                                                        <INPUT name="enddate" class="easyui-datebox"
                                                               id="enddate" style="border:none" type="text"
                                                               data-options="formatter:myformatter,parser:myparser"
                                                               value="<fmt:formatDate value='${model.enddate}' type='date'/>">
                                                    </DIV>
                                                    <A
                                                            class="btn confirm margin_l_10"
                                                            onClick="$('#queryForm').submit();"
                                                            href="javascript:void(0);">查询</A>
                                                </DIV>
                                            </DIV>
                                            <br>

                                            <div class="talbes">

                                                <table style="text-align: center" width="100%" border="0"
                                                       cellpadding="8" cellspacing="0">
                                                    <tbody>
                                                    <tr class="talbe_pubs_tr">
                                                        <td>对账日期</td>
                                                        <td>对账类型</td>
                                                        <td>订单笔数</td>
                                                        <td>订单总金额</td>
                                                        <td>接口方总笔数</td>
                                                        <td>接口方总金额</td>
                                                        <td>差异笔数</td>
                                                        <td>差异金额</td>
                                                    </tr>
                                                    <c:forEach var="model" items="${list}">
                                                        <tr>
                                                            <td><c:out value="${model.billDate}"/>
                                                            </td>
                                                            <td>
                                                                <c:choose>
                                                                    <c:when test="${'1'==model.billType}">
                                                                        入款
                                                                    </c:when>
                                                                    <c:otherwise>出款</c:otherwise>
                                                                </c:choose>
                                                            </td>
                                                            <td><c:out value="${model.tradeCount}"/>笔</td>
                                                            <td><fmt:formatNumber pattern="#,##0.00" value="${model.tradeSum}"/>元</td>
                                                            <td><c:out value="${model.oppTradeCount}"/> 笔   </td>
                                                            <td><fmt:formatNumber pattern="#,##0.00" value="${model.oppTradeSum}"/>元
                                                            </td>
                                                            <td><c:out value="${model.diffCount}"/> 笔   </td>
                                                            <td><fmt:formatNumber pattern="#,##0.00" value="${model.diffSum}"/>元
                                                            </td>
                                                        </tr>
                                                    </c:forEach>
                                                    </tbody>
                                                </table>
                                                <jsp:include page="/jsp/platform/include/kkpager.jsp"></jsp:include>
                                            </div>
                                        </div>
                                    </FORM>
                                </div>
                                <!--当中内容块结束--></TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            </TBODY>
        </TABLE>
    </DIV>
    <%@ include file="/jsp/platform/include/foot.jsp" %>
</BODY>
</HTML>
